<template>
  <el-row :gutter="20">
    <el-col :span="6" v-for="item in listdata" :key="item.title">
      <div class="grid-content bg-purple">
        <i class="iconfont icon-wenjian"></i>
        <div class="content">
          <h3>{{ item.title }}</h3>
          <p>{{ item.num }}</p>
        </div>
      </div>
    </el-col>
  </el-row>
</template>

<script>
export default {
  props: {
    listdata: {
      type: Array,
      default: () => []
    }
  }
}
</script>

<style lang="less" scope>
.el-row {
  margin-bottom: 20px;
}
.el-col {
  border-radius: 4px;
}
.bg-purple {
  background: #fff;
}
.grid-content {
  padding: 20px;
  border-radius: 4px;
  min-height: 36px;
  display: flex;
  text-align: center;
  i {
    flex: 1;
    font-size: 60px;
  }
  .content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    h3 {
      color: #cccccc;
      margin-bottom: 8px;
    }
    p {
      font-weight: bold;
    }
  }
}
</style>
